package cn.huaqingcheng.tianshu.core.start.repository;

import cn.huaqingcheng.tianshu.core.start.model.SiteGroup;

import java.util.List;
import java.util.Map;
import java.util.Optional;

/**
 * SiteGroupRepository
 */
public interface SiteGroupRepository {

    List<SiteGroup> getAll(Long accountId);

    Optional<SiteGroup> selectById(Long id);

    Map<Long, SiteGroup> selectMapByIds(List<Long> ids);

    Long save(SiteGroup group);

    void update(SiteGroup group);

    void update(List<SiteGroup> group);

    void deleteById(Long id);

}
